package com.javaooptwo;

public class Demo4 {
    public static void main(String[] args) {
        User user = new User();

        User[] users = new User[2];
        User user1 = new User();
        user1.name="lisi";
        user1.password="123";

        User user2 = new User();
        user2.name="zs";
        user2.password="123";

        users[0]=user1;
        users[1]=user2;

        user.printUser(users);
        System.out.println("dddd");

    }
}
